package com.sokal.easycare.modules.product.service.brand;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sokal.easycare.common.config.Global;
import com.sokal.easycare.common.persistence.Page;
import com.sokal.easycare.common.service.CrudService;
import com.sokal.easycare.common.utils.StringUtils;
import com.sokal.easycare.modules.product.entity.brand.ProBrand;
import com.sokal.easycare.modules.product.dao.brand.ProBrandDao;

/**
 * 产品品牌Service
 * @author liliangdong
 * @version 2017-03-12
 */
@Service
@Transactional(readOnly = true)
public class ProBrandService extends CrudService<ProBrandDao, ProBrand> {

	
	public ProBrand get(String id) {
		ProBrand proBrand = super.get(id);
		proBrand.setFastdfs_file_url(Global.getConfig("fastdfs_file_url"));
		return proBrand;
	}
	
	public List<ProBrand> findList(ProBrand proBrand) {
		return super.findList(proBrand);
	}
	
	public Page<ProBrand> findPage(Page<ProBrand> page, ProBrand proBrand) {
		return super.findPage(page, proBrand);
	}
	
	@Transactional(readOnly = false)
	public void save(ProBrand proBrand) {
		super.save(proBrand);
	}
	
	@Transactional(readOnly = false)
	public void delete(ProBrand proBrand) {
		super.delete(proBrand);
	}
	
}